package day04;
import java.util.Scanner;
public class HomeWork2 {
    public static void main(String[] args) {



        Scanner scan=new Scanner(System.in);
        System.out.println("1.佛耶戈2.诺手3.大头");
        int command=scan.nextInt();
        switch (command){
            case 1:
                System.out.println("佛耶戈");
                break;
            case 2:
                System.out.println("诺手");
                break;
            case 3:
                System.out.println("大头");
                break;
            default:
                System.out.println("请重新选择");
        }




        Scanner scan2=new Scanner(System.in);
        int number=(int) (Math.random()*200+1);
        System.out.println("猜吧！");
        int guess=scan2.nextInt();
        while (guess != number){
            if (guess<number){
                System.out.println("猜小了！");
            }else {
                System.out.println("猜大了！");
            }
           guess=scan2.nextInt();
        }
        System.out.println("恭喜你猜对了！");




        Scanner scan3=new Scanner(System.in);
        int number1=(int) (Math.random()*100+1);
        int guess1;
        do {
            System.out.println("开始猜吧");
            guess1=scan3.nextInt();
            if (guess1>number1){
                System.out.println("猜大了");
            }else if (guess1<number1){
                System.out.println("猜小了");
            }else {
                System.out.println("恭喜你猜对了");
            }
        }while (guess1!=number1);





        for (int times=0;times<5;times++){
            System.out.println("八嘎呀路，死啦死啦滴！");
        }
        for (int num3=1;num3<=9;num3++){
            System.out.println(num3*9);
        }
        for (int num3=9;num3>=1;num3--){
            System.out.println(num3*9);
        }
    }
}
